﻿using FreeSql.DataAnnotations;
using System.ComponentModel;

namespace D.ATN.Models
{
    [Table(Name = "ProcessEntity")]
    [Description("加工配置")]
    public class ProcessEntity
    {
        [Column(IsPrimary = true, IsIdentity = true)]
        [Description("主键")]
        public int Id { get; set; }

        [Column(DbType = "varchar", StringLength = 128)]
        [Description("场景名称")]
        public string Name { get; set; }

        [Column(DbType = "varchar", StringLength = 500)]
        [Description("基础数据")]
        public string BasicInfo { get; set; }

        [Column(DbType = "int")]
        [Description("参数数量")]
        public int DcItemCount { get; set; }

        [Column(DbType = "int")]
        [Description("Wafer数量")]
        public int WaferCount { get; set; }

        [Column(DbType = "int")]
        [Description("原始值数量")]
        public int RawDataCount { get; set; }

        [Column(DbType = "int")]
        [Description("用户数量")]
        public int UserCount { get; set; }

        [Column(DbType = "int")]
        [Description("并发次数")]
        public int SecondCount { get; set; }

        [Column(DbType = "decimal")]
        [Description("每多少秒并发")]
        public decimal Second { get; set; }

        [Column(DbType = "varchar", StringLength = 20)]
        [Description("持续发送单位")]
        public string ContinueUni { get; set; }

        [Column(DbType = "int")]
        [Description("持续发送值")]
        public int ContinueCount { get; set; }

        [Column(DbType = "bit")]
        [Description("原始值随机")]
        public bool RawDataRandom { get; set; }

        [Column(DbType = "decimal")]
        [Description("违规率")]
        public decimal RuleOOCoos { get; set; } = 0;

        [Column(DbType = "varchar", StringLength = 128)]
        [Description("所属环境")]
        public string EvnName { get; set; }

        [Column(DbType = "varchar", StringLength = 500)]
        [Description("监控参数")]
        public string DcItems { get; set; }

        [Column(DbType = "varchar", StringLength = 500)]
        [Description("Chamber")]
        public string Chambers { get; set; }

        [Column(DbType = "varchar", StringLength = 500)]
        [Description("Chamber")]
        public string ChamebrStrs{ get; set; }

        [Description("最小值")]
        public int Lower { get; set; }

        [Description("最大值")]
        public int Upper { get; set; }

        [Column(DbType = "varchar", StringLength = 500)]
        [Description("LdsName")]
        public string LdsName { get; set; }
    }
}
